﻿using System.ComponentModel.DataAnnotations;

// se usa con MODEL FIRST tt generation code
// también puede usarse para CODE FIRST, haciendo las clases de entiddades como partial: public partial class Parking {...}
namespace Parking.Models
{
    //[MetadataType(typeof(PositionValidations))]
    //public partial class Position
    //{
    //    // Add logic to the generated class in here.
    //    //public string FullName
    //    //{
    //    //    get { return FirstName + " " + LastName; }
    //    //}
    //}

    //public class PositionValidations    
    //{
    //    [Required(ErrorMessage = "Por favor digite un número válido")]
    //    [Display(Name = "#")]
    //    [StringLength(10, ErrorMessage = "The {0} maximun lenght is {1} characters long.", MinimumLength = 1)]        
    //    public string Number { get; set; }

    //}

    //[MetadataType(typeof(ModelParkingValidations))]
    //public partial class Parking
    //{
        
    //}

    //public class ModelParkingValidations    
    //{
    //    [Required]
    //    [Display(Name = "Vehicle ID")]
    //    [StringLength(50, ErrorMessage = "The {0} maximun lenght is {1} characters long.", MinimumLength = 1)]
    //    public string VehicleNumber { get; set; }

    //}
}